<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/dbtest/logisticsites/agv_information.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/demoproject/logisticsites/agv_information.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: 'AGV异常信息',
                name: 'logisticsites/agv_information',
                newTabEdit: false,
                url: "/agv_information/",
                sortName: "agvname"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"agvname":""});
            const searchFormOptions = ref([[{"title":"AGV小车","field":"agvname"}]]);
            const columns = ref([{field:'id',title:'id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'agvname',title:'AGV小车',type:'string',sort:true,width:120,align:'left'},
                       {field:'code',title:'异常代码',type:'int',width:110,align:'left'},
                       {field:'describes',title:'异常描述',type:'string',width:150,align:'left'},
                       {field:'Reserve1',title:'预留字段1',type:'string',width:150,align:'left'},
                       {field:'Reserve2',title:'预留字段2',type:'string',width:150,align:'left'},
                       {field:'Reserve3',title:'预留字段3',type:'string',width:150,align:'left'},
                       {field:'datetime',title:'任务时间',type:'datetime',width:110,align:'left'}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
